Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable DT by Default for the Go Agent #495

Merged
merged 10 commits into from
May 19, 2022
Merged

Enable DT by Default for the Go Agent #495

merged 10 commits into from
May 19, 2022

Conversation

nr-swilloughby
Copy link
Contributor

This code enables DT by default for the Go agent.

@@ -14,14 +14,14 @@ import (

func doRequest(txn *newrelic.Transaction) error {
req, err := http.NewRequest("GET", "http://localhost:8000/segments", nil)
if nil != err {
if err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for fixing this, these always bothered me

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a matter of principle I've been fixing those as I encounter them. when doing other fixes.

panic(err)
}
app.WaitForConnection(10 * time.Second)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this one-shot redis example work without that WaitForConnection in here?

@nr-swilloughby nr-swilloughby merged commit 86338ab into newrelic:develop May 19, 2022
@nr-swilloughby nr-swilloughby mentioned this pull request May 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants